package com.gupao.strategyAndTemplate;

import com.gupao.strategyAndTemplate.proxyLogger.APILoggerFactory;
import com.gupao.strategyAndTemplate.proxyLogger.ActionLoggerFactory;
import com.gupao.strategyAndTemplate.proxyLogger.ILoggerFactory;
import com.gupao.strategyAndTemplate.proxyLogger.LoginLoggerFactory;

/**
 * @Description: //TODO:
 * @ClassName: LoggerType
 * @Author: msx
 * @CreateDate: 2018/3/24 18:50
 */
public enum LoggerType {


    LOGGER_API(new APILoggerFactory()),
    LOGGER_ACTION(new ActionLoggerFactory()),
    LOGGER_LOGIN(new LoginLoggerFactory());

    private ILoggerFactory loggerFactory;

    LoggerType(ILoggerFactory loggerFactory){
        this.loggerFactory = loggerFactory;
    }

    public ILoggerFactory getLoggerObj(){ return  this.loggerFactory;}


}
